
#ifndef __PICCTRL_H__
#define __PICCTRL_H__

#include <string>
#include "imagectrl.h"

class PicCtrl : public ImageCtrl
{
public:
	PicCtrl(void);
	virtual ~PicCtrl(void);
	void Load(const WCHAR* filename);
	void SetRect(const RECT& rect);
	void SetButtonImage(ImageCtrl* savectrl, ImageCtrl* usectrl);
	void Draw(HDC dc);
	bool MouseMove(const POINT& point);
	bool MouseDown(const POINT& point);
	bool MouseUp(const POINT& point);

protected:
	std::wstring m_filename;
	ImageCtrl* m_savectrl;
	ImageCtrl* m_usectrl;
	RECT m_saverect;
	RECT m_userect;
	bool m_showbutton;

	void DrawButton(HDC dc);

};

#endif //__PICCTRL_H__
